@import './reset';
@import './footer';

@function getvw($w) {
    @return calc($w / 750) * 100+vw;
}

$themColor: #ff9344;
$themWidth: getvw(710);

%column_center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

%between_center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    width: 100vw;
    @extend %column_center;
    // 减去底部高度，防止内容被遮挡
    margin-bottom: getvw(135);

    header {
        width: $themWidth;
        // background-color: pink;

        nav {
            @extend %between_center;
            margin: getvw(50) 0 getvw(20);

            .back {
                width: getvw(123);
                height: getvw(57);
                line-height: getvw(57);
                border: getvw(2) solid $themColor;
                border-radius: getvw(20);
                text-align: center;
                font-size: getvw(26);
            }

            &>p {
                font-size: getvw(26);
            }

            .selectBox {
                width: getvw(160);
                height: getvw(55);
                border: getvw(2) solid $themColor;
                display: flex;
                justify-content: space-around;
                align-items: center;
                font-size: getvw(26);

                img {
                    display: block;
                    width: getvw(30);
                }
            }
        }

        .banner {
            width: 100%;

            ul:first-child {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 getvw(5);

                li {
                    @extend %column_center;

                    img {
                        display: block;
                        height: getvw(150);
                    }

                    p {
                        font-size: getvw(26);
                        margin-top: getvw(10);
                    }
                }
            }

            // 指示点
            ul:last-child {
                width: getvw(95);
                @extend %between_center;
                margin: getvw(15) auto;

                li {
                    width: getvw(20);
                    height: getvw(20);
                    border-radius: 50%;
                    background-color: $themColor;
                    opacity: 0.5;
                }

                .active {
                    opacity: 1;
                }
            }
        }
    }

    main {
        width: 100vw;
        @extend %column_center;

        section {
            width: $themWidth;
            // background-color: red;

            .con_title {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .ct_left {
                    display: flex;
                    align-items: center;
                    font-size: getvw(30);
                    // background-color: red;

                    img {
                        height: getvw(55);
                        display: block;
                        margin: 0 getvw(10);
                    }
                }

                .ct_right {
                    display: flex;
                    align-items: center;
                    font-size: getvw(24);

                    img {
                        display: block;
                        height: getvw(25);
                        margin-left: getvw(8);
                    }
                }
            }

            // 运动类标题 icon 外边距
            &:nth-child(3){
                .con_title{
                    .ct_left{
                        img{
                            margin: 0 getvw(15) 0 getvw(10);
                        }
                    }
                }
            }
            // 电影类标题 icon 外边距
            &:nth-last-child(2){
                .con_title{
                    .ct_left{
                        img{
                            margin: 0 getvw(20) 0 0;
                        }
                    }
                }
            }

            .content {
                @extend %between_center;
                margin: getvw(38) 0;

                li {
                    img {
                        display: block;
                        height: getvw(133);
                    }
                }
            }

        }
    }
}